﻿<%@ Page Language="C#" MasterPageFile="~/MangerPage.master" AutoEventWireup="true" CodeFile="Manger_NewsPreview.aspx.cs" Inherits="Manger_NewsPreview" Title="新闻预览" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:Jxzy_Database %>"
        SelectCommand="SELECT [News_ID], [News_TypeName],[News_UserID], [News_Title], [News_Writer], [News_From], [News_Content], [News_ModifyDate],[News_Visit] FROM [zyk_News] WHERE ([News_ID] = @News_ID)">
        <SelectParameters>
            <asp:QueryStringParameter Name="News_ID" QueryStringField="news_id" Type="Int32" />
        </SelectParameters>
    </asp:SqlDataSource>
    <asp:FormView ID="FormView1" runat="server" DataKeyNames="News_ID" DataSourceID="SqlDataSource1" Width="100%">
        <ItemTemplate>
            <div class="newstitle"><asp:Label ID="Label1" runat="server" Text='<%# Eval("News_Title") %>'></asp:Label></div>
            <div style="text-align: center">作者：<asp:Label ID="Label2" runat="server" Text='<%# Eval("News_Writer") %>'></asp:Label>
            &nbsp; 来源：<asp:Label ID="Label3" runat="server" Text='<%# Eval("News_From") %>'></asp:Label>&nbsp;
            点击数：<asp:Label ID="Label4" runat="server" Text='<%# Eval("News_Visit") %>'></asp:Label><br />
            </div>
            <div><asp:Label ID="Label5" runat="server" Text='<%# Eval("News_Content") %>'></asp:Label></div>
            <div style="text-align: right"><asp:Label ID="Label6" runat="server" Text='<%# Eval("News_UserID") %>'></asp:Label>最后编辑于<asp:Label
                    ID="Label7" runat="server" Text='<%# Eval("News_ModifyDate", "{0:g}") %>'></asp:Label></div>
        </ItemTemplate>
    </asp:FormView>
</asp:Content>

